package com.lcy.demo;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * Created by 娄存银 on 2017/4/6.
 */
public class RemoteServiceImpl extends UnicastRemoteObject implements RemoteService {
    protected RemoteServiceImpl() throws RemoteException {
    }

    @Override
    public String sayHello(String name) throws RemoteException {
        String msg = String.format("hello %s", name);
        System.out.println(msg);
        return msg;
    }
}
